package com.fortune.dto.in.client;

import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotBlank;

import com.fortune.constants.PatternConstants;

import io.swagger.annotations.ApiModelProperty;

public class ClientEditDto {
	@NotBlank(message="客户id不能为空")
	@ApiModelProperty(example="客户id")
	private String id;
	@NotBlank(message="客户名称不能为空")
	@ApiModelProperty(example="客户名称")
	private String name;
	@NotBlank(message="客户简称不能为空")
	@ApiModelProperty(example="客户简称")
	private String abbreviation;
	@NotBlank(message="客户编号不能为空")
	@ApiModelProperty(example="客户编号")
	private String number;
	@NotBlank(message="联系人姓名不能为空")
	@ApiModelProperty(example="联系人姓名")
	private String principalName;
	@Pattern(regexp=PatternConstants.PHONE)
	@ApiModelProperty(example="联系人手机号")
	private String principalPhone;
	@NotBlank(message="店面地址不能为空")
	@ApiModelProperty(example="店面地址")
	private String address;
	@ApiModelProperty(example="回访周期")
	private float returnPeriod;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getAbbreviation() {
		return abbreviation;
	}
	public void setAbbreviation(String abbreviation) {
		this.abbreviation = abbreviation;
	}
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}
	public String getPrincipalName() {
		return principalName;
	}
	public void setPrincipalName(String principalName) {
		this.principalName = principalName;
	}
	public String getPrincipalPhone() {
		return principalPhone;
	}
	public void setPrincipalPhone(String principalPhone) {
		this.principalPhone = principalPhone;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public float getReturnPeriod() {
		return returnPeriod;
	}
	public void setReturnPeriod(float returnPeriod) {
		this.returnPeriod = returnPeriod;
	}
	@Override
	public String toString() {
		return "ClientEditDto [id=" + id + ", name=" + name + ", abbreviation=" + abbreviation + ", number=" + number
				+ ", principalName=" + principalName + ", principalPhone=" + principalPhone + ", address=" + address
				+ ", returnPeriod=" + returnPeriod + "]";
	}
}
